package ar.com.angel.alert
{
	import mx.controls.Alert;

	/**
	 * Clase que facilita la interaccion
	 * de mensajes con el usuario
	 */
	public class CustomAlert
	{
		
		
		public static function error(_message:String, _function:Function = null):void{
			[Embed(source="/images/Error.png")]
			var errorButton:Class;
			Alert.show(_message, "Error", 4, null, _function, errorButton);
		}
		
		public static function info(_message:String, _function:Function = null):void{
			[Embed(source="/images/Error.png")]
			var errorButton:Class;
			errorButton.width = 30;
			errorButton.heigth = 30;
			Alert.show(_message, "Information", 4, null, _function, errorButton);
		}
		
		public static function warning(_message:String, _function:Function = null):void{
			[Embed(source="/images/Warning.png")]
			var warningButton:Class;

			Alert.show(_message,"Warning",4,null,_function,warningButton);
		}
		
		
		
	}
}